// Author: wsfuyibing <682805@qq.com>
// Date: 2025-06-25

package order

import (
	"gitee.com/go-wares/framework-iris/framework"
	"github.com/kataras/iris/v12"
	"server/app/http/logics/user/order/close"
	"server/app/http/logics/user/order/detail"
	"server/app/http/logics/user/order/list"
)

// Controller
// 订单操作.
//
// @RoutePrefix("/user/order")
// @Middleware("authorizer")
type Controller struct{}

// GetDetail
// 订单详情.
func (o *Controller) GetDetail(i iris.Context) {
	framework.Do(i, detail.New)
}

// GetList
// 订单列表.
func (o *Controller) GetList(i iris.Context) {
	framework.Do(i, list.New)
}

// PostClose
// 关闭订单.
func (o *Controller) PostClose(i iris.Context) {
	framework.Do(i, close.New)
}
